<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../css/pagination.css">

</head>

<body>
    <div class="page">
        <div class="pageBox m-style"></div>
    </div>
</body>
<script src="../js/jquery-1.10.1.min.js"></script>
<script src="../js/jquery.pagination.js"></script>
<script>
    $(".pageBox").pagination({
        // totalData: 0, //数据总条数
        showData: 10, //每页显示的条数
        pageCount: 10, //总页数,默认为9
        current: 10, //当前第几页
        mode: 'fixed',
        count: 4,
        coping: true,
        homePage: '首页', //首页节点内容
        endPage: '尾页', //尾页节点内容
        jump: true, //跳转到指定页数
        callback: function (api) {
            pageIndex = api.getCurrent();
            //console.log(pageIndex)

        }
    })
</script>

</html>